package com.app.model;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_tests")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class TestsModel {
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;
    @ExcelProperty("试验名称")
    private String name;//实验名称
    @ExcelProperty("年度")
    private Integer year;//年度
    @ExcelIgnore
    private Integer departmentId;//所属部门ID
    @ExcelProperty("试验类型")
    private String testType;//实验类型
    @ExcelProperty("试验型号")
    private String modelType;//型号
    @ExcelProperty("试验科目")
    private String subject;//实验科目
    @ExcelProperty("开始时间")
    private String startTime;//开始时间
    @ExcelProperty("结束时间")
    private String endTime;//结束时间
    @ExcelProperty("概述")
    private String description;//概述
    @ExcelProperty("故障日志")
    private String errorLog;//故障日志
    @ExcelIgnore
    private String fileUrl;//附件
    @TableField(exist = false)
    @ExcelIgnore
    private String[] fileUrlArr;//附件
    @ExcelIgnore
    private Timestamp createTime;
    @ExcelIgnore
    private Timestamp updateTime;

    @TableField(exist = false)
    @ExcelIgnore
    private String testTime;//开始结束时间
    @TableField(exist = false)
    @ExcelIgnore
    private String timeRange;//开始结束时间
    @TableField(exist = false)
    @ExcelIgnore
    private String reviewTime;//归零评审时间
    @TableField(exist = false)
    private String periodText;// 所属人名字字段
    @TableField(exist = false)
    @ExcelProperty("单位")
    private String departmentName;// 所属人名字字段
    @TableField(exist = false)
    @ExcelIgnore
    private List<TestsPersonModel> personList;
    @TableField(exist = false)
    @ExcelProperty("负责人")
    private String personName;//
    @TableField(exist = false)
    @ExcelIgnore
    private Integer count;
    @TableField(exist = false)
    @ExcelIgnore
    private Integer nums;
    @TableField(exist = false)
    @ExcelProperty("联系方式")
    private String phone;// 所属部门字段


}
